﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SistemaLogistica.Windows.Forms.Adquisicion.Reportes
{
    public partial class CwfProveedores : UserControl
    {
        public CwfProveedores()
        {
            InitializeComponent();
        }

        private void btnBuscar_Click(object sender, EventArgs e)
        {
            if (!this.chkTodos.Checked)
            {
                this.reporteProveedoresTableAdapter.Fill(this.sistemaLogisticaDS.ReporteProveedores, txtBuscar.Text);
            }
            else
            {
                this.reporteProveedoresTableAdapter.Fill(this.sistemaLogisticaDS.ReporteProveedores, "%");
            }

            this.rpvProveedores.RefreshReport();
        }



     
     
    }
}
